package com.leandro.CalendarioDeCompromissos;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class TelaConsulta extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tela_consulta);
		
		View btnCancelar = (Button) findViewById(R.id.btnConsultaCancelar);
		btnCancelar.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {

				try {
					finish();
				} catch (Exception e) {
					Log.e("Erro", null);
				}
			}

		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.tela_consulta, menu);
		return true;
	}

}
